﻿<%@ Page Title="Chi tiết logo, banner" Language="C#" AutoEventWireup="true" CodeBehind="LogoEdit.aspx.cs" Inherits="VIT.Web.Admin.LogoEdit" %>
<%@ Register Assembly="VIT.Web.Controls" Namespace="VIT.Web.Controls" TagPrefix="VIT" %>

<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../../Includes/Validation/Validation.css" rel="stylesheet" type="text/css" />
    <script src="../../Includes/Validation/ValidationEngine.js" type="text/javascript"></script>
    <script src="../../Includes/Validation/Validation.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">    	       
   <form id="frmMain" runat="server"> 
        <!-- Content (Right Column) -->
        <div id="content" class="box">
            <asp:Panel ID="pnAlert" runat="server">
                <p class="msg info" id="lblThanhCong" runat="server" visible="false">Dữ liệu đã lưu thành công.</p>
                <p class="msg error" id="lblThatBai" runat="server" visible="false">Không thể lưu dữ liệu.</p>
                <p class="msg error" id="lblHinhKoDung" runat="server" visible="false">Hình không đúng định dạng.</p>
	        </asp:Panel>
            <div id="ButtonInsert" class="toolbar" runat="server" visible="false">
                <VIT:Submit ID="Save" runat="server" Function="Logo_Insert" ToolTip="Lưu và quay lại danh sách" CssClass="icon-32-save" BorderStyle="None" onclick="Save_Click" OnClientClick="$('#aspnetForm').validationEngine();"/>
                <VIT:Submit ID="Apply" runat="server" Function="Logo_Insert" ToolTip="Lưu lại" CssClass="icon-32-apply" BorderStyle="None" onclick="Apply_Click" OnClientClick="$('#aspnetForm').validationEngine();" />
                <asp:Button runat="server" ToolTip="Hủy bỏ" CssClass="icon-32-cancel" BorderStyle="None" onclick="Cancel_Click"/>
            </div>  
            <div id="ButtonModify" class="toolbar" runat="server" visible="false">
                <VIT:Submit ID="Save2" runat="server" Function="Logo_Modify" ToolTip="Lưu và quay lại danh sách" CssClass="icon-32-save" BorderStyle="None" onclick="Save_Click" OnClientClick="$('#aspnetForm').validationEngine();"/>
                <VIT:Submit ID="Apply2" runat="server" Function="Logo_Modify" ToolTip="Lưu lại" CssClass="icon-32-apply" BorderStyle="None" onclick="Apply_Click" OnClientClick="$('#aspnetForm').validationEngine();" />
                <asp:Button runat="server" ToolTip="Hủy bỏ" CssClass="icon-32-cancel" BorderStyle="None" onclick="Cancel_Click"/>
            </div>  
            <div class="clr"></div>          
            <fieldset>
		        <legend>Thông tin cơ bản</legend>
                <table class="nostyle" style="float:left">                 
                    <tr>
                        <td align="right">Vị trí :</td>
                        <td><asp:DropDownList ID="ddlPositon" runat="server"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="right">URL : </td>
                        <td><asp:TextBox ID="txtLink" runat="server" Width="400px" CssClass="validate[length[0,300]]" MaxLength="300"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Loại logo : </td>
                        <td>
                            <asp:RadioButtonList ID="rblType" runat="server" 
                                onselectedindexchanged="rblType_SelectedIndexChanged" 
                                RepeatDirection="Horizontal" AutoPostBack="True" BorderStyle="None">
                                <asp:ListItem Selected="True">Image</asp:ListItem>
                                <asp:ListItem>Flash</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <asp:Panel ID="pnSize" runat="server" Visible="false">
                                Width :<asp:TextBox ID="txtWidth" runat="server" CssClass="validate[onlyNumber,length[1,4]]" Width="100px" MaxLength="4"></asp:TextBox> 
                                &nbsp;&nbsp;&nbsp;Height:<asp:TextBox ID="txtHeight" runat="server" CssClass="validate[onlyNumber,length[1,4]]" Width="100px" MaxLength="4"></asp:TextBox>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">File : </td>
                        <td><asp:FileUpload ID="fupImg" runat="server" Width="375px" /></td>
                    </tr>
                </table>
                <asp:Image ID="img" runat="server" width="100px" height="100px" style="float:left; margin-left:20px;" Visible="false"/>
            </fieldset>
            <fieldset>
		        <legend>Thông tin chi tiết</legend>
                <table class="nostyle">
                    <tr>
                        <td align="right">Ngôn ngữ :</td>
                        <td><asp:DropDownList ID="ddlLang" runat="server"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="right">Tiêu đề :</td>
                        <td><asp:TextBox ID="txtTitle" runat="server" CssClass="validate[length[1,300]]" Width="400px" MaxLength="300"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Mô tả :</td>
                        <td><asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="400px" MaxLength="500"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Thứ tự :</td>
                        <td><asp:TextBox ID="txtOrder" runat="server" Width="50px" CssClass="validate[onlyNumber]" Text="30" MaxLength="3"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Hiển thị :</td>
                        <td><asp:CheckBox ID="chkPublish" runat="server" Checked="true"/></td>
                    </tr>
                </table>
            </fieldset>

            <script type="text/javascript">
                $("#aside ul li#LogoList").addClass("submenu-active");
            </script>
        </div>
    </form>
</asp:Content>
